//
//  Tool.swift
//  swiftTS
//
//  Created by 航电 on 2020/4/14.
//  Copyright © 2020 航电. All rights reserved.
//

import UIKit

struct Tool {
    static let is_iphone_x = (screenMainSize.height >= 821) ? true : false;
    
    static let HEIGHT_STATUS_BAR:CGFloat = Tool.is_iphone_x ? 44.0 : 20.0;
    
    static let HEIGHT_STATUS_NAVBAR:CGFloat = Tool.is_iphone_x ? 88.0 : 64.0;
    
    static func kScreenWith(width:CGFloat) -> CGFloat {
        return (screenMainSize.width/375.0)*width;
    }
}


